/**
 * @Author 12629
 * @Date 2022/5/8 11:56
 * @Description：
 */
public class TestDemo {
    //类的调用者
    public static void main(String[] args) {
        Date date = new Date();
        //date.year = 1999;
        date.setYear(1999);
        System.out.println("获取当前的年份： "+date.getYear());
        //date.month = 9;
        //date.day = 8;
        date.setMonth(9);
        System.out.println("获取当前的月份："+date.getMonth());
        date.setDay(10);
        System.out.println("获取当前的号："+date.getDay());
        date.printDate();
    }
}
